package cn.wolfcode.luowowo.repository;

import cn.wolfcode.luowowo.domain.Banner;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BannerRepository extends MongoRepository<Banner, String> {

    //查询 类型为游记 ，状态为正常的几个
    List<Banner> findByTypeAndState(int type, int stateNormal, Pageable of);
}
